package com.cupk.common;

/**
 * 名称PageResult
 * 描述分页类
 *
 * @version 1.0
 * @author:XiongRuiKai
 * @datatime:2023-06-11 14:58
 */
import java.util.List;

public class PageResult<T> {
    private List<T> records;//数据记录
    private long total;//数据记录数

    public PageResult(List<T> records, long total) {
        this.records = records;
        this.total = total;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
